package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TransformsToBeDropped {

    private int beginIndex;
    private int endIndex;
    private Identifier transformGroupElement;

    public TransformsToBeDropped(int beginIndex, int endIndex) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
    }

    public TransformsToBeDropped(Identifier transformGroupElement) {
        this.beginIndex = transformGroupElement.getBeginIndex();
        this.endIndex = transformGroupElement.getEndIndex();
        this.transformGroupElement = transformGroupElement;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getTransformGroupElement() {
        return transformGroupElement;
    }

    public boolean isAll() {
        return transformGroupElement == null;
    }

}
